package com.wangyb.wework.mapper.contact;

import com.ruoyi.common.core.mybatisplus.MybatisPlusRedisCache;
import com.ruoyi.common.core.page.BaseMapperPlus;
import com.wangyb.wework.entity.contact.WwContactEmployee;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Author: wangyb
 * @Date: 2021/7/1 1:04 下午
 */
@CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class)
public interface WwContactEmployeeMapper extends BaseMapperPlus<WwContactEmployee> {
	@Update("update ww_contact_employee set del_flag=0 where contact_wx_userid=#{contactWxUserid} and employee_wx_userid=#{employeeWxUserid}")
	boolean restore(@Param("contactWxUserid")String contactWxUserid, @Param("employeeWxUserid")String employeeWxUserid);
}
